package com.itheima.activiti.service.business;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.activiti.entity.business.Leaves;
import org.activiti.engine.runtime.ProcessInstance;
import org.springframework.stereotype.Service;

@Service
public interface LeaveService extends IService<Leaves> {

    /**
     * 启动请假流程实例
     * @param leaves
     * @return
     */
    ProcessInstance start(Leaves leaves);

    /**
     * 提交请假流程实例
     * @param leaves
     * @return
     */
    ProcessInstance commit(Leaves leaves);

//    List<TaskDTO> todoList();
//
//    void complete(String businessId, Map<String, Object> variables);
//
//    void turnTask(String businessId, String user);
//
//    void revokeTask(String businessId);
}
